/**
 * Assignment 2 - DVRP
 * @author Long Nguyen
 *
 */

public class DVRP {

	/**
	 * @param args
	 */
	public static void main(String[] args) throws InterruptedException {
		
		Node node;
		if (args.length >= 4) {
			node = new Node(args);
			node.Start();
		}
		else {
			System.err.println("Usage:  java DVRP <PoisonedReverse> <numOfNodes> <myID> <myport#>");
			System.err.println("Usage:  java DVRP <PoisonedReverse> <numOfNodes> <myID> <myport#> <nextNode'sPort#>");
			System.err.println("<PoisonedReverse> = T/F");
			System.err.println("<numOfNodes> = 3/4");
			System.err.println("<myID> = 0..3");
			System.err.println("<myport#> = 6000..8000");
            System.exit(-1);
		}
	}
}
